package com.example.domain.exam;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;
import oj.common.core.domain.BaseEntity;

import java.time.LocalDateTime;

@TableName("tb_exam")
@Getter
@Setter
public class Exam extends BaseEntity {
    @TableId(type = IdType.ASSIGN_ID)
    private Long examId;

    private String title;

    private int status;

    @JsonSerialize(using = ToStringSerializer.class)
    private LocalDateTime startTime;

    @JsonSerialize(using = ToStringSerializer.class)
    private LocalDateTime endTime;

}
